//
//  XJCmtChargePayTypeCell.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/7/17.
//  Copyright © 2018年 Tzyang. All rights reserved.
//  社区缴费 --- 》 支付方式 cell


#import "XJCmtChargePayTypeCell.h"
@interface XJCmtChargePayTypeCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconIv;
@property (weak, nonatomic) IBOutlet UILabel *payTypeLB; //付款方式lb
@end

@implementation XJCmtChargePayTypeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setModel:(XJCmtChargePayTypeModel *)model {
    _model = model;
    
    self.iconIv.image = [UIImage imageNamed:model.iconStr];
    self.payTypeLB.text = model.payTypeStr;
    
    // accessoryView + model选中状态实现单选🔘
    if (model.isCheck) {
        self.accessoryView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"selected_on"]];
    }else {
        self.accessoryView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"selected_off"]];
    }
}

@end
